import axios from 'axios';
import {API_NEW_VERSION} from '../api';

export const orgDataPermissionTree = () => {
  return axios.get(API_NEW_VERSION + 'data_permission_organization_tree');
};

export const deleteDataPermission = ids => {
  return axios.delete(API_NEW_VERSION + 'data_permission/' + ids);
};

export const saveDataPermission = param => {
  return axios.post(API_NEW_VERSION + 'data_permissions', param);
};
